﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Calculator.aspx.cs" Inherits="Calculator.Calculator" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Calculator</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="firstNumber" runat="server"></asp:Label><br />
        <asp:TextBox ID="number" runat="server"></asp:TextBox><asp:regularexpressionvalidator ID="Regularexpressionvalidator1" ControlToValidate="number"
         ValidationExpression="\d+.?\d*" runat="server" errormessage="Not A Number"></asp:regularexpressionvalidator><br />
        
        <asp:Button ID="add" Text="+" runat="server" OnClick="button_Add" />
        <asp:Button ID="substract" Text="-" runat="server" OnClick="button_Substract" />
        <asp:Button ID="multiply" Text="*" runat="server" OnClick="button_Multiply" />
        <asp:Button ID="divide" Text="/" runat="server" OnClick="button_Divide" />
        <asp:Button ID="sqrt" Text="sqrt" runat="server" OnClick="button_Sqrt" />
        <asp:Button ID="module" Text="|a|" runat="server" OnClick="button_Module" />
        <br /><asp:Button ID="equals" runat="server" Text="=" OnClick="button_Equals" />
        <br />Result: <asp:Label ID="result" runat="server"></asp:Label>

    </div>
    </form>
</body>
</html>

